<?php echo Modules::run('content/header_content') ?>

<div class="container main">
		<div>
      
      
			<div class="15">
        		<div class="row">
          			<div class="span15 content">
  						<h1>Change Password</h1>  
          			</div>
        		</div>
        		<div class="row">
          		<?php $user_id = Modules::run('auth/get_user_id'); ?>
          			<div class="span15 content">
            			<div class="row box-product-row box">
              				<div class="just list" id="orderHistory">
                				<div class="box-product-list mix" style="display:inline-block; opacity:1;">
                  					<div class="row">
                                    	<div class="span14" id="myaccount">
                                        	<h3>Your Password</h3>
                                            	<div class="content-account">

<?php
$old_password = array(
	'name'	=> 'old_password',
	'id'	=> 'old_password',
	'value' => set_value('old_password'),
	'size' 	=> 30,
);
$new_password = array(
	'name'	=> 'new_password',
	'id'	=> 'new_password',
	'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
	'size'	=> 30,
);
$confirm_new_password = array(
	'name'	=> 'confirm_new_password',
	'id'	=> 'confirm_new_password',
	'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
	'size' 	=> 30,
);
?>
<?php echo form_open($this->uri->uri_string()); ?>
<table>
	<tr>
		<td><?php echo form_label('Old Password', $old_password['id']); ?></td>
		<td><?php echo form_password($old_password); ?></td>
		<td style="color: red;"><?php echo form_error($old_password['name']); ?><?php echo isset($errors[$old_password['name']])?$errors[$old_password['name']]:''; ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('New Password', $new_password['id']); ?></td>
		<td><?php echo form_password($new_password); ?></td>
		<td style="color: red;"><?php echo form_error($new_password['name']); ?><?php echo isset($errors[$new_password['name']])?$errors[$new_password['name']]:''; ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('Confirm New Password', $confirm_new_password['id']); ?></td>
		<td><?php echo form_password($confirm_new_password); ?></td>
		<td style="color: red;"><?php echo form_error($confirm_new_password['name']); ?><?php echo isset($errors[$confirm_new_password['name']])?$errors[$confirm_new_password['name']]:''; ?></td>
	</tr>
</table>
<?php echo form_submit('change', 'Change Password','class = "btn btn-primary"'); ?>
<a style="text-decoration:none; margin-left:10px;" class="btn" id="cancel" href="<?php echo base_url();?>account">Cancel</a>
<?php echo form_close(); ?>

</div>
                                        	
                                        </div>
                  					</div>
               					</div>
              				</div>
			  
              				<div class="clearfix">
           					</div>
             
          				</div>
          
        			</div>
      			</div>
    		</div>
  		</div>
	</div>
</div>



<?php echo Modules::run('content/footer_content') ?>